package com.base.service;

import com.base.po.voip.CompanyArticle;
import com.base.po.voip.CompanyArticleExample;
import com.base.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CompanyArticleService {
    int countByExample(CompanyArticleExample example);

    int deleteByExample(CompanyArticleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CompanyArticle record);

    int insertSelective(CompanyArticle record);

    List<CompanyArticle> selectByExample(CompanyArticleExample example);

    List<CompanyArticle> selectByParentID(@Param("page") Page page, @Param("parentid") String parentid,
                                          @Param("title") String title, @Param("classifyid") String classifyid);

    List<CompanyArticle> selectAll(String parentid);

    CompanyArticle selectByPrimaryKey(Integer id);

    CompanyArticle selectNextId(@Param("id") Integer id, @Param("parentid") String parentid);

    int updateByExampleSelective(@Param("record") CompanyArticle record, @Param("example") CompanyArticleExample example);

    int updateByExample(@Param("record") CompanyArticle record, @Param("example") CompanyArticleExample example);

    int updateByPrimaryKeySelective(CompanyArticle record);

    int updateByPrimaryKey(CompanyArticle record);

    int countByParentID(@Param("parentid") String parentid, @Param("title") String title, @Param("classifyid") String classifyid);
}